Package-level declarations

Types

Link copied to clipboard
class ApiVideoLiveStream @RequiresPermission(allOf = ["android.permission.RECORD_AUDIO", "android.permission.CAMERA"]) constructor(context: Context, apiVideoView: ApiVideoView, connectionListener: IConnectionListener, permissionRequester: (List<String>, onGranted: () -> Unit) -> Unit = { _, onGranted -> onGranted() })

Manages both livestream and camera preview.

Link copied to clipboard
class AudioConfigurationHelper(audioHelper: AudioStreamerConfigurationHelper)
Link copied to clipboard
Link copied to clipboard
class VideoStreamerConfigurationHelper(videoHelper: VideoCameraStreamerConfigurationHelper)

Functions

Link copied to clipboard

Add a slash at the end of a String only if it is missing.

Link copied to clipboard
@RequiresPermission(allOf = ["android.permission.RECORD_AUDIO", "android.permission.CAMERA"])
fun ApiVideoLiveStream(context: Context, apiVideoView: ApiVideoView, connectionListener: IConnectionListener, initialAudioConfig: AudioConfig? = null, initialVideoConfig: VideoConfig? = null, initialCameraPosition: CameraFacingDirection = CameraFacingDirection.BACK, permissionRequester: (List<String>, onGranted: () -> Unit) -> Unit = { _, onGranted -> onGranted() }): ApiVideoLiveStream
Link copied to clipboard
fun List<Size>.closestTo(size: Size): Size

Find the closest size to the given size in a list of sizes.